
#ifndef HAL_UART_H
#define HAL_UART_H
#include "main.h"
#define RX_BUFF_MAX 256
extern UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart2;
extern DMA_HandleTypeDef DMA_Init_Handle_uart_rx;
extern DMA_HandleTypeDef DMA_Init_Handle_uart_tx;
void MX_USART1_UART_Init(void);
void MX_USART2_UART_Init(void);
void uartprintf(const char *fmt,...);

#endif
